<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/jquery-3.6.0.min.js"></script>
</head>
<body>
<div><p id="dian"></p></div>
<button id="button">点名</button>
<button id="reset">重置</button>
<script>
    $("#button").click(function (){
        $.get('pickName',function (obj) {
            $("#dian").text(obj);
        },'text')
    })

    $("#reset").click(function (){
        $.get('reset',function (obj) {
            alert("重置");
        },'text')
    })
</script>
</body>
</html>